import { defHttp } from "@/utils/http";
// ERP 仓库组类型表 VO
export interface drugCategoryVO {
	typeGrpId: string;
	typeGrpName: string;
	createdBy: string;
	updatedTime: number;
	sort: number;
	status: string;
}

// ERP 仓库组类型表 API
export const whsGrpApi = {
	// 查询仓库组类型列表
	whsGrpList: async (params: any) => {
		return await defHttp.get({ url: `/whs/whs-grp/page`, params });
	},
	// 新增仓库组类型
	whsGrpCreate: async (data: drugCategoryVO) => {
		return await defHttp.post({ url: `/whs/whs-grp/create`, data });
	},

	// 修改仓库组类型
	whsGrpUpdate: async (data: drugCategoryVO) => {
		return await defHttp.put({ url: `/whs/whs-grp/update`, data });
	},

	// 删除仓库组类型
	whsGrpDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/whs-grp/delete?id=` + id });
	}
};
